using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;

public class TestComponent : AutoBindFieldComponent
{
    public Text text;
    public Button button;
    public Image image1, image2;
    public Transform cardParent;
    public List<Transform> cardList = new List<Transform>();
    //演示列表绑定
#if UNITY_EDITOR
    public override void Bind()
    {
        base.Bind();
        cardList.Clear();
        cardList.AddRange(cardParent.GetComponentsInChildren<Transform>(true));
        EditorUtility.SetDirty(this);
    }
    #endif
}